<template>
    <div class="IncreAse">
        <div style="margin: 20px;"></div>
        <el-form :label-position="labelPosition" :rules="rules" label-width="80px" :model="formLabelAlign">
            <el-form-item label="编号" prop="name">
                <el-input v-model="formLabelAlign.name"></el-input>
            </el-form-item>
            <el-form-item label="标题" prop="title">
                <el-input v-model="formLabelAlign.name"></el-input>
            </el-form-item>
            <el-form-item label="类型" prop="title">
                <el-radio v-model="radio" label="1">备选项</el-radio>
                <el-radio v-model="radio" label="2">备选项</el-radio>
            </el-form-item>
            <tinymce></tinymce>
            <el-button type="primary" @click="edit">确定</el-button>
            <el-button type="primary" @click="cancellation">取消</el-button>
        </el-form>
    </div>
</template>
<script>
import Tinymce from '@/components/Tinymce'

export default {
    name: 'IncreAse',
    components: {
        Tinymce
    },
    data() {
        return {
            labelPosition: 'right',
            radio: '1',
            formLabelAlign: {
                name: '',
                region: '',
                type: ''
            },
            rules: {
                name: [{ required: true, message: '编号不能为空', trigger: 'blur' },],
                title: [{ required: true, message: '标题不能为空', trigger: 'blur' },],
            }

        };
    },
    methods: {
        // 跳转页面
        cancellation() {
            this.$router.push({
                path: "/CMS/SinglePage",
             
            })
        },
        edit(){

        }
    }

}
</script>
<style scoped></style>



